<template>
  <header class="header">
    <h1 class="site-title">
      <router-link to="/">{{ siteTitle }}</router-link>
    </h1>
    <nav class="nav">
      <router-link to="/">首页</router-link>
      <router-link to="/about">关于</router-link>
    </nav>
  </header>
</template>

<script>
export default {
  name: 'AppHeader',
  data() {
    return {
      siteTitle: 'lj1k.top'
    }
  }
}
</script>

<style scoped>
.header {
  margin-bottom: 40px;
  text-align: center;
}

.site-title {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.site-title a {
  color: #333;
}

.nav {
  margin-top: 20px;
}

.nav a {
  margin: 0 15px;
  font-size: 1.1rem;
}
</style>